WooCommerce\Square\Handlers\Products C

Total Complexity 113
Dependencies 7
Dependents 1
Total lines 705
Lines of code 344
Logical lines of code 184
Comment lines 216
Methods 24
Properties 5

Methods 24

Method Rating Maintainability Complexity Lines of code
process_product_data()
A
49 17 27
maybe_adjust_square_stock()
A
46 12 35
add_notice_product_hidden_from_catalog()
A
51 9 24
add_product_data_fields()
A
46 8 39
set_synced_with_square()
A
54 9 19
maybe_stage_product_for_sync()
S
58 8 15
check_product_sync_errors()
S
58 6 15
validate_product_update_and_sync()
S
53 5 25
filter_products_synced_with_square()
S
56 5 17
handle_product_duplication()
S
58 5 16
output_synced_with_square_edit_field()
S
52 4 25
add_filter_products_synced_with_square_option()
S
59 4 14
maybe_sync_staged_products()
S
71 4 5
maybe_stage_products_for_deletion()
S
67 4 8
maybe_delete_staged_products()
S
73 3 5
add_variation_manage_stock()
S
70 2 7
__construct()
S
63 1 11
add_products_edit_screen_hooks()
S
64 1 9
add_bulk_edit_inputs()
S
81 1 3
add_quick_edit_inputs()
S
82 1 3
add_product_sync_hooks()
S
70 1 6
add_product_edit_screen_hooks()
S
67 1 7
format_product_error()
S
71 1 6
get_plugin()
S
82 1 3